<html><head>

        <link href="<?php echo base_url('assets/css/formpindahpergi.css') ?>" rel="stylesheet" type="text/css">
        <title>Laporan Pindah pergi</title>
    </head>
    <body>
        <table width="100%" border="0" align="center">
            <tr>
                <td colspan="8" class="trheader">Laporan Pindah Pergi Penduduk</td>
            </tr>
            <tr>
                <td colspan="8" class="jeda">&nbsp;</td>
            </tr>
            <tr>
                <td width="32"><div align="center"><strong>No.</strong></div></td>
              <td width="158"><div align="center"><strong>No. Form</strong></div></td>
              <td width="90"><div align="center"><strong>No. KK</strong></div></td>
              <td width="118"><div align="center"><strong>NIK Pemohon</strong></div></td>
              <td width="106"><div align="center"><strong>Nama Pemohon</strong></div></td>
              <td width="141"><div align="center"><strong>Tanggal Pindah</strong></div></td>
              <td width="218"><div align="center"><strong>Alamat Tujuan</strong></div></td>
              <td width="86"><div align="center"><strong>Aksi</strong></div></td>
          </tr>
            <?php
            if (isset($pindah_pergi)) {
                $no = 1;
                foreach ($pindah_pergi->result() as $data_pindahpergi) {
                    echo '<tr>';
                    echo '<td><div align="center">' . $no++ . '</div></td>';
                    echo '<td>' . $data_pindahpergi->form . '</td>';
                    echo '<td>' . $data_pindahpergi->no_kk . '</td>';
                    echo '<td>' . $data_pindahpergi->nik_pemohon . '</td>';
                    echo '<td>' . $data_pindahpergi->nama_pemohon . '</td>';
                    echo '<td>' . $this->tanggal->tanggal_indonesia($data_pindahpergi->tgl_pergi) . '</td>';
                    echo '<td>' . $data_pindahpergi->alamat . ' RT ' . $data_pindahpergi->rt . ' RW ' . $data_pindahpergi->rw .
                    ' Dusun ' . $data_pindahpergi->dusun_tujuan . ', Desa ' . $data_pindahpergi->desa_tujuan .
                    ', Kec. ' . $data_pindahpergi->kecamatan_tujuan . ', Kab. ' . $data_pindahpergi->kabupaten_tujuan .
                    ', Prop. ' . $data_pindahpergi->propinsi_tujuan . '</td>';
                    echo '<td><div align="center"><a href="' . base_url('pindah_pergi/ubah/' . $data_pindahpergi->form) . '"><img src="' . base_url('assets/images/ubah.png') . '"></a>  -  <a href="' . base_url('pindah_pergi/hapus/' . $data_pindahpergi->form) . '"><img src="' . base_url('assets/images/hapus.png') . '"></a></div></td>';
                    echo '</tr>';
                }
            }
            ?>
        </table>
        <br>
        <table width="419" border="0" align="center">
            <tr>
                <td colspan="2" class="jeda"><strong>Data Tercatat</strong></td>
            </tr>
            <tr>
                <td width="177">Jumlah Kepala Keluarga</td>
                <td width="232">: <?php echo $pindah_pergi->num_rows(); ?> orang</td>
            </tr>
        </table>
    </body>
</html>
